<?php
 $url = "153.122.19";
  $user = "";
  $pass = "";

  $db = "cyber_quest_admage_sum";

  $tb1 = "click_log";
  $cols1 = array();

  $tb2 = "summary_api";
  $cols2 = array();

  $link = mysql_connect($url,$user,$pass);

  $sdb = mysql_select_db($db,$link);

  $sql = "SELECT * FROM click_log";
  $result = mysql_query($sql, $link);

  $rows = mysql_num_rows($result);
  while ($row = mysql_fetch_assoc($result)) {
  	print_r($row);
    print($row['id']);
    print($row['article_id']);
  }
  mysql_free_result($result);

  mysql_close($link);
?>
